//
//  LZUploadImagePresenter.h
//  laziz_Consumer
//
//  Created by xbn_iMac on 2016/11/29.
//  Copyright © 2016年 XBN. All rights reserved.
//

#import "NetworkServiceManager.h"

typedef void (^ UploadRequestSuccessBlock)(NSURLSessionDataTask *task, id responseObject);
typedef void (^ UploadRequestFailureBlock)(NSURLSessionDataTask *task, NSError *error);
typedef void (^ UploadRequestConstructingBodyBlock)(id<AFMultipartFormData> formData);

@interface LZUploadImagePresenter : NetworkServiceManager

/**
 上传图片
 
 @param imageFile 图片
 @param businessId 业务ID,如果上传头像就是用户ID
 @param businessType 业务类型，1:头像 2:优惠视频 3:评论图片
 @param businessNo 图片的序号
 @param isThumb 不缩放传NO；缩放传YES
 @param aSize 可为空，默认{200，200}，空时传CGSizeZero
 
 */

+ (id)uploadImage:(UIImage *)imageFile
        andBusinessId:(NSString*)businessId
      andBusinessType:(NSString*)businessType
        andBusinessNo:(NSString*)businessNo
           andIsThumb:(BOOL)isThumb
              andSize:(CGSize)aSize
             andBlock:(void(^)(id data, NSError *error))block;

@end
